package com.dyh.quickdemo.bizDemo;

import java.io.Serializable;
import java.util.function.BiFunction;
import java.util.function.Function;

/*
@Author=Joey Wheeler
@Date=2020/11/19 14:28
*/
public class MaxLbd {


    public interface CircuitBreaker{

    }

    interface OrderInfoDao{
        OrderInfo trylock(Long id);
    }

    class OrderInfo{

    }

    public static void main(String[] args) {
        OrderInfoDao orderInfoDao = id -> null;
        long orderId= 1L;


      OrderInfo orderInfo = ((Function<Long,OrderInfo> & CircuitBreaker & Serializable)
               orderInfoDao::trylock).apply(orderId);

    }
}
